<template>
    <page-body>
        <view class="page">
            <view class="flex benben-position-layout flex flex-wrap align-center platform_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex flex-wrap align-center justify-between flex-sub platform_fd0_0'>
                    <view class='flex flex-wrap align-center platform_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
                        <text class='fu-iconfont2  platform_fd0_0_c0_c0'>&#xE794;</text>
                    </view>
                    <view class='flex flex-wrap align-stretch justify-center'>
                        <text class='platform_fd0_0_c1_c0'>平台消息</text>
                    </view>
                    <view class='flex flex-wrap align-center justify-end platform_fd0_0_c0'>
                    </view>
                </view>

            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>

            <view class="flex flex-direction flex-wrap align-stretch justify-center benben-flex-layout platform_flex_1">
                <template v-for='(item,key0) in newList'>
                    <view class='flex flex-direction flex-wrap align-stretch platform_fd1_0' @tap.stop="handleJumpDiy" data-type="navigateTo" :data-url="`/pages/index/newDetails/newDetails?aid=${item.aid}`" :key='key0'>
                        <text class='platform_fd1_0_c0'>{{item.title}}</text>
                        <text class='platform_fd1_0_c1'>{{item.description}}</text>
						<image v-if="item.images" class='platform_fd1_0_c4' mode="aspectFill" :src='item.images'></image>
                        <text class='self-end platform_fd1_0_c2'>{{item.create_time}}</text>
                        <view class='flex flex-wrap align-center platform_fd1_0_c3' v-if="item.is_read == 0">
                        </view>
                    </view>
                </template>
                <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData" :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
            </view>




        </view>
    </page-body>
</template>
<script>
    import pagingList from '@/common/mixin/paging_list.js';
    import {
        validate
    } from '@/common/utils/validate.js'

    export default {
        components: {},
        mixins: [pagingList],

        data() {
            return {
                "minixPagingListsApi": "",
                "pageingListApiMethod": "",
                "allowOnloadGetList": false,
                "list": "",
                "newList": []
            };
        },
        computed: {

        },
        watch: {},
        onLoad(options) {

        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {
            this.post64b602b6636f4()
        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
            //查询平台公告
            post64b602b6636f4() {
                this.minixPagingListsApi = global.apiUrls.post64b602b6636f4;
                this.pageingListApiMethod = 'get';
                this.allowOnloadGetList = false;
                this.pagingListPostDataContent = {
                    type: uni.getStorageSync('tabberType') == 2 ? 3 : 1 
                }
                this.listData = [];
                this.newList = this.listData;
                this.pagingListToggle();

            },
            pagingListPostData() {
                return this.pagingListPostDataContent
            }
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: #F8F8F8;
        background-size: 100% auto;
    }

    .platform_flex_0 {
        background: #fff;
        width: 750rpx;
        height: 88rpx;
        overflow: hidden;
        z-index: 10;
        top: 0rpx;
        background-size: 100% auto !important;
    }

    .platform_fd0_0_c1_c0 {
        font-size: 36rpx;
        font-weight: 500;
        color: #333;
        line-height: 88rpx;
    }

    .platform_fd0_0_c0_c0 {
        font-size: 36rpx;
        color: #333;
    }

    .platform_fd0_0_c0 {
        width: 120rpx;
        height: 88rpx;
    }

    .platform_fd0_0 {
        padding: 0rpx 32rpx 0rpx 32rpx;
        height: 88rpx;
    }

    .platform_flex_1 {
        padding: 24rpx 32rpx 0rpx 32rpx;
    }

    .platform_fd1_0_c3 {
        background: rgba(243, 51, 51, 1);
        width: 14rpx;
        height: 14rpx;
        border-radius: 10rpx;
        background-size: 100% auto;
        position: absolute;
        top: 10rpx;
        right: 10rpx;
    }

    .platform_fd1_0_c2 {
        line-height: 33rpx;
        font-size: 24rpx;
        font-weight: 400;
        color: #999999;
        margin: 24rpx 0rpx 0rpx 0rpx;
    }

    .platform_fd1_0_c1 {
        font-size: 28rpx;
        font-weight: 400;
        color: #666666;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        line-height: 45rpx;
    }

    .platform_fd1_0_c0 {
        line-height: 45rpx;
        font-size: 32rpx;
        font-weight: 500;
        color: #333333;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        margin: 0rpx 20rpx 24rpx 0rpx;
    }

    .platform_fd1_0 {
        background: #fff;
        padding: 32rpx 24rpx 24rpx 24rpx;
        background-size: 100% auto !important;
        border-radius: 16rpx 16rpx 16rpx 16rpx;
        margin: 0rpx 0rpx 24rpx 0rpx;
        position: relative;
    }
	.platform_fd1_0_c4{
		width: 100%;
	}
</style>